php forum
php mysql forum
php mysql smarty
 
Page 3 of 3 < 1 2 3
Topic Options
#247168 - 02/11/04 01:24 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Intel -*RW*-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
also heres a hint. If your including a program in this page ala require you may wanna change the $config= to anything else see mine a few pages back because if there is a $config in that program it will not work as intended..
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#247169 - 02/11/04 02:26 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: 234234]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Will do - I had a number of old Generic Pages, but I think they are versions long before this one (they do not have the Menu information on em...but the recent version does).<br /><br />I had modified them to work with the current setup, but taking this Generic Page version and changing the one or two variables worked fine for me. No issues at all.

Top
#247170 - 02/28/04 01:40 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Intel -*RW*-]
McP485 Offline
Lurker

Registered: 01/17/04
Posts: 1
I'm having trouble getting this to work for me. It always says I'm not logged in. I think it is cookie-related, but I'm not a huge threads expert or anything.<br /><br />We have threads running on bbs.blahblahblah.com and the generic page on blahblahblah.com -- both share the same file system, so I can use require(), but threads and the main site essentially run on two separate servers. Do I need to move threads over to the main site, or is there some change I can make to get this to work?<br /><br />I hope that made a little sense...

Top
#247171 - 02/28/04 02:23 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: bafner]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Well the cookie would be domain specific - so the cookie would only work on bbs.blahblahblah.com (note that bbs.blahblahblah.com and www.blahblahblah.com are different domains from a cookie standpoint). You'll probably have to put this inside of your threads directory for it to work if you are using a subdomain like that. Or do some deeper modification to get the cookies to work domain wide. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#247172 - 03/19/04 08:47 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
Medar Offline
Junior Member

Registered: 03/19/00
Posts: 571
Here is an odd one. I am integrating another script that shares the same MySQL DB as Threads...and am using the above Generic Threads page as a "wrapper".<br /><br />I am getting the following error:<br /><br />Fatal error: Call to a member function on a non-object in /home/medar/public_html/ubbt.inc.php on line 1779<br /><br />Which is this section, with line 1779 bolded:<br />[] // -----------------------------------------------------------------<br /> // We are automatically adding StyleSheet, Status, Privates and<br /> // FrontPage and Number to each SQL call because this information is needed by<br /> // every script that makes a call to authenticate<br /> if ($Query != "*") {<br /> if ($Query) { $Query .=","; }<br /> $Query .= "U_Username,U_Password,U_SessionId, U_StyleSheet, U_Status, U_Privates, U_FrontPage, U_Number, U_Banned";<br /> }<br /> $Uid = addslashes(${$config['cookieprefix']."w3t_myid"});<br /><br /> $query = "SELECT $Query FROM {$config['tbprefix']}Users WHERE U_Number = '$Uid'";<br /> $sth = $dbh -> do_query($query);<br /> $thisuser = $dbh -> fetch_array($sth);<br /> $dbh -> finish_sth($query);[/]<br /><br />Any idea what would cause that? Thanks in advance!

Top
#247173 - 03/19/04 09:08 AM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Intel -*RW*-]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
debug it by putting some odd characters here<br /><br />[]<br /> $query = "SELECT $Query FROM {$config['tbprefix']}Users WHERE U_Number = '$Uid' <insert odd charceter>";<br />[/]<br /><br />then look at the select that is trying to pass.. if it doesn't look like a good formatted select then it may cause this error. Also $Query == $query on some servers so I would advise to use something else for the $Query something like $Myquery instead of the $Query
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#247174 - 03/31/04 03:27 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: 234234]
swebs_dup1 Offline
Lurker

Registered: 03/31/04
Posts: 8
Any quick way to find what forumns/groups the user has access to. I only want certain users that have access to a specific group to be able to see this page I'm making.

Top
#247175 - 04/24/04 12:57 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Daine]
Calimerion Offline
Newbie

Registered: 07/03/03
Posts: 11
Since upgrading from 6.4.1 to 6.4.2, we seem to have some issues with the user variables somehow. <br /> <br />We do the following. At top of the generic page: <br /> <br /> $userob = new user; <br /> $user = $userob -> authenticate("U_Groups"); <br /> <br />At the page itself for a search function: <br /> <br /> $variable = $user['U_Username']; <br /> <br /> <br />Somehow the search does not work anymore and so far I can't seem to locate what may cause the issue here. <br /> <br /> <br />Thank you a lot for any possible hint. <br /> <br /> <br />Best greetings, <br />Robert <br /> <br />Edit: <br />No solution, but the cause of the problem is "register globals off". Turning it to on for testing made it making work again (same as the link database). After turning it to on though it stopped working off course again :-)


Edited by Calimerion (04/24/04 02:16 PM)

Top
#247176 - 04/24/04 10:16 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: fearthefrog]
scroungr Offline
Old Hand

Registered: 10/17/03
Posts: 2409
Loc: Richmond, VA
Hmmm only issues I ever found was that sometimes the scripts I used to call from it had the same config command so I had to change threads config to config_threads and at the end change it back..
_________________________
Couchtomatoe - www.couch-tomatoe.cc
My abilities are for hire for installs, upgrades, custom themes and custom modifications.

Top
#247177 - 04/25/04 09:05 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: fearthefrog]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
* I want to integrate my whole site into my threads setup, but the task of creating a .php and .tmpl for each of the hundreds of pages in my site is daunting. I tried to make a generic page with a frameset in it to call my sites pages into the frame, but framesets and frames don't seem to work inside the generic.tmpl page. Any thoughts? =/

Top
#247178 - 05/21/04 01:09 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Webstrong]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
You shouldn't have to create a .tmpl page, just name the generic.php file anything.php you want and set the $threadspath correctly.
_________________________
- Allen wavey
- What Drives You?

Top
#247179 - 05/22/04 03:26 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: SurfMinister]
donJulio Offline
Code Monkey

Registered: 06/17/02
Posts: 682
Loc: CA, USA
The only reason you really need the .tmpl version is if these will be in your threads directory and you want to be able to edit them from your Threads control panel. Though since you're talking about your whole site, you don't need the templated version. Just copy and past all the code from each .html file into the indicated area in the generic.php file and rename it to whatever you want. And as Allen said, set $threadspath correctly.
_________________________
Too many men. There's too many people making too many problems, and not much love to go around. Can't you see this is the Land of Confusion? <img src="http://www.ubbdev.com/forum/images/graemlins/confused.gif" alt="" />

Top
#247180 - 07/10/04 03:50 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: SurfMinister]
Calpy Offline
Power User

Registered: 12/17/02
Posts: 71
* WHen you say "set the threadspath correctly", what is correctly? For example, the current threadspath is /home/value/public_html/ubbthreads right now. If I just put the desired code into the webpage.php page, and wanted to skip using a template, what would I change that threadspath to? =/

Top
#247181 - 07/10/04 10:42 PM Re: Beta-[6.0-6.1-6.2-6.3] Generic Threads Page [Re: Webstrong]
Twisty Offline
Code Monkey

Registered: 09/26/03
Posts: 524
You would use your current threads path for all generic pages + the forum. It's a universal setting basically, and for all intents and purposes wouldn't need changing unless you moved to a new host.
_________________________
Twisty []http://www.mameworld.info/misc/nana2.gif[/]
MAMEWorld

Top
Page 3 of 3 < 1 2 3


Moderator:  Ian_W 
Who's Online
0 registered (), 25 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Wisdom needed
by Gizmo
56 minutes 29 seconds ago
How to hide sub forums from summary page
by blaaskaak
Yesterday at 09:54 AM
Spell Check [beta]
by Bill B
12/01/08 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
12/01/08 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
12/01/08 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
12/01/08 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
Truth, David DelMonte, nick1, Begbie, cenk
13364 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks