vBulletin Modifications

Anyone know how to............

Welcome to vBHackers.com! - vBHackers Updates:

Go Back   vBulletin Modifications > General vBulletin Section > vBulletin Modification Requests

Reply
 
LinkBack Thread Tools
Old 04-22-2004, 10:42 AM   #1
Coder
Join Date: Apr 2004
LiquidIce is on a distinguished road

Unhappy Anyone know how to............

im try to get the last 5 Threads from forums 13/14/15/30

to show up @the top of the site

ive got this code but is fetches last 5 from the complete site

You must first be a registered member to view any code.
Anyone got any ideas plz >?




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 04-22-2004, 10:45 AM   #2
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

err i thought i had posted this already but it seems i hadnt.

Modify a last 5 threads hack would be my thoughts.
have it only pull where forumid = 1 AND forumid = 2
or create an array for foumids

your code says 0 for LIMIT also

might wanna change that if all you want is the last 5

Last edited by ShavedApe; 04-22-2004 at 10:53 AM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2004, 10:56 AM   #3
Coder
Join Date: Apr 2004
LiquidIce is on a distinguished road

Default

hmm cant seem to find over @vb.org
Ive got a hack already installed for last 5 but it fetchs them from
all the forums & i want from the Races forum to show @the top

& when i know enuff top scanners/pubbers etc..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2004, 11:39 AM   #4
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

ok heres a quick and dirty fix

Your talking races which means your prolly using lockdown
Assuming you are using the lockdown from here,

Follow these steps:

in admincp/forum.php

Find:
You must first be a registered member to view any code.
change to:
You must first be a registered member to view any code.
Find:
You must first be a registered member to view any code.
Below add:
You must first be a registered member to view any code.
SAVE & CLOSE

in includes/init.php

Find:
You must first be a registered member to view any code.
Change To
You must first be a registered member to view any code.
Save And Close
I havent looked over this code much yet so cant tell you every instance but
In pax's lockdown you would need to change
You must first be a registered member to view any code.
for:
You must first be a registered member to view any code.
Repeat almost all this process

adding an admin cp option for race,
Lets say the option is:
Is this a race option? yes/no

The code above needs to be slightly edited to suit your needs:

Now the last bit of this code where you change paxtrax code is the bit you dont repeat

you need to add more

first alter your lockdown table and new field
raceforum smallint(1) default 0

in functions_newpost

ADD:

[/php]
if ($foruminfo['race'])
// assuming you have used race as your admin set option
{
$raceforum = 1;
}
[/php]

in the lockdown code same file find:

You must first be a registered member to view any code.
replace with

You must first be a registered member to view any code.
Ok thats the first bit overwith

now you want to retreive only your last 5 races in your index.php

somewhere near the end of the file

add the following:

You must first be a registered member to view any code.
in forumhome you would call $last5race
in last5race template you would call $last5racebits
last5racebits would look simmilar to below:
You must first be a registered member to view any code.
damn diddnt realise it was that big lol
Enjoy! hack pretty much written for you lol

Last edited by ShavedApe; 04-22-2004 at 11:43 AM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2004, 11:51 AM   #5
Coder
Join Date: Apr 2004
LiquidIce is on a distinguished road

Default

thnx man u rock

yea im using pax lockdown but its heavly modded by some dude




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2004, 12:13 PM   #6
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

I would advise adding a release field to lockdown,
Do that and with some work you can have last 5 races + mirrors.
As it is your gonna have to do some work to prevent you ending up with 5 threads that contain the same stuff as your race threads.

Other ways I guess would be a forum where the first post of a release is posted and no one else posts that release there lets call it 0-Sec forum ;) and then a normal forum for every other post of it.
Then you use raceforum only on the 0-Sec forum.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2004, 12:28 PM   #7
Coder
Join Date: Apr 2004
LiquidIce is on a distinguished road

Default

Grrr fscking errors

You must first be a registered member to view any code.
the line is
You must first be a registered member to view any code.
/me Sighs

would it not be easyer if i just grab the last 5 tops from forum id X & X ?
like the top5 hack does but im not sure how to get from the spefic forum




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2004, 12:37 PM   #8
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

did you add the extra field to the lockdown ?

quote:
first alter your lockdown table and new field
raceforum smallint(1) default 0

Yes its possible to do what you say but again your going to have to do some work to prevent you just getting the last 5 threads.

Lets assume user 1 posts bla-RELEASE and user 2 also posts bla-RELEASE but 5 mins later
but in your last 5 races it would show as race1 and race2
add the extra field for release name and you could prevent that and at the same time you could create a mirrors hack.


oh btw getting from specific forum is simply
select form thread
WHERE forumid = 1 OR forumid = 2

Last edited by ShavedApe; 04-22-2004 at 12:40 PM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2004, 12:39 PM   #9
Coder
Join Date: Apr 2004
LiquidIce is on a distinguished road

Default

yeah i inserted the table

* LiquidIce thinks lol
Attached Images
File Type: jpg untitled.JPG (47.4 KB, 36 views)




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-22-2004, 12:43 PM   #10
Coder
Join Date: Apr 2004
Location: UK
ShavedApe is on a distinguished road

Default

try :
You must first be a registered member to view any code.
the space in working bothers me watch out for that.

I posted withought but here it has one make sure if you copy and paste you dont end up with a space there.

Last edited by ShavedApe; 04-22-2004 at 12:46 PM..




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -3. The time now is 11:12 AM.

Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc. (Patent Pending)