Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
daemon
Worker
Worker


Joined: Jan 07, 2005
Posts: 163

PostPosted: Mon Apr 10, 2006 2:29 am Reply with quote

got a quick question.... in the forums footer theres {PHPBB_VERSION} which I'm assuming is pose to a call to get version number? anyway how would be the best way to call the config_value from database or the version number whichever its called?
 
View user's profile Send private message Visit poster's website AIM Address
VinDSL
Life Cycles Becoming CPU Cycles


Joined: Jul 11, 2004
Posts: 614
Location: Arizona (USA) Admin: NukeCops.com Admin: Disipal Designs Admin: Lenon.com

PostPosted: Mon Apr 10, 2006 6:11 am Reply with quote

Here's how I do it... Cool

Code:
$sql = "SELECT config_value FROM " . $prefix . "_bbconfig WHERE config_name = 'version'";

$result = $db->sql_query($sql);
$phpBB_Version = $db->sql_fetchrow($result);

_________________
.:: "The further in you go, the bigger it gets!" ::.
.:: Only registered users can see links on this board! Get registered or login! | Only registered users can see links on this board! Get registered or login! ::. 
View user's profile Send private message Visit poster's website ICQ Number
daemon
PostPosted: Mon Apr 10, 2006 10:23 am Reply with quote

was this removed at one point or another?
 
daemon
PostPosted: Mon Apr 10, 2006 10:43 am Reply with quote

where are these set?, they really need updated rather than leaving the old code in there, any ideas to where {PHPBB_VERSION} and {ADMIN_LINK} are actually at?
i'm looking and dont see em Smile
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Mon Apr 10, 2006 12:24 pm Reply with quote

The version was removed from the main Forums page, it is now in the Forums admin panel
It is assigned in modules/Forums/page_footer_admin.php

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
daemon
PostPosted: Mon Apr 10, 2006 1:40 pm Reply with quote

ah ha..... can i still display it on the old page? {PHPBB_VERSION} is obvisouly not the right way.
 
evaders99
PostPosted: Mon Apr 10, 2006 10:09 pm Reply with quote

Well, you'd have to re-add the code back into the page_tail.php - time to go back a couple of phpBB versions
 
daemon
PostPosted: Mon Apr 10, 2006 10:19 pm Reply with quote

ah i said forget it, hehe isnt worth all that Smile
 
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9453
Location: Arizona

PostPosted: Tue Apr 11, 2006 5:53 am Reply with quote

Yeah, it was moved so that hackers wouldn't know the exact version of phpBB you were using... you know, anything to help slow them down a little...

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©