Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-31-2005, 05:22 PM
demure demure is offline
 
Join Date: Aug 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default New posts passed to variables

First off, I'd very much appreciate any help with this topic. I understand some of you are busy. Also, I didn't just sign up today and post this to abuse the system. I've been here for a while, just haven't had a reason to post until now and avidly support the website.

Is there someway to pass the newest thread info/links into certain variables?

example:
$newthreadinfo1 (1st most recent thread title, user, and time)
$newthreadlink1 (1st most recent thread link)
$newthreadinfo2 (2nd most recent thread title, user, and time)
$newthreadlink2 (2nd most recent thread link)
etc. etc. for a user-defined limit.

I would need it set up this way for certain reasons. Would this be hard? I would definately appreciate it as I'm not too much of a coder (more of a graphic artist).

If you need any other info, just ask. I'm not expecting anyone to make this for me but if you could help me along, I'd be more than appreciative. Thanks for your time.

Regards,
Matt
Reply With Quote
  #2  
Old 03-31-2005, 06:04 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello Matt,

Where would you want to use this info?
On your forumhome, in the thread itself, on your portal?
Reply With Quote
  #3  
Old 03-31-2005, 06:07 PM
demure demure is offline
 
Join Date: Aug 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Deaths,

Thanks for the quick response. I'd need to use the variables in the header template.

Regards,
Matt
Reply With Quote
  #4  
Old 04-05-2005, 05:22 PM
demure demure is offline
 
Join Date: Aug 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry to bump the thread, but is no one able to do this? Is it even possible? If it requires a bit of cash for persuasion I might consider that. I just need this done for a forum I'm developing. Thanks!

Regards,
Matt
Reply With Quote
  #5  
Old 04-05-2005, 05:56 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by demure
Sorry to bump the thread, but is no one able to do this? Is it even possible? If it requires a bit of cash for persuasion I might consider that. I just need this done for a forum I'm developing. Thanks!

Regards,
Matt
Ho do you want the $var(s) passed?
Do you want this for threads where the last post was made and for all forums, but only ones defined by some method?

I mean I understand what you are trying to do, but I don't understand exactly how you want to do it! Can you make screen of what you want the result to show or do you have a template row that will show me how each row should look, so I know how to make the function return the data each eval(template_row) needs! Depending how you want it will tell me if I can grab data that is already being processed or if I need to do another query or add another Join to get what you are needing for your display! In other words please give more details.

I know you want it in the header template, now show me how you want it! Give an example so I can see what the result would look like, and list exactly each $var you want to have access to!

These I know, list any others that you need!

Thread Title
Last Post User Name
Last Post Time
Thread Icon, if no last Post Icon.

Lastly, how will this be limited. By a user action (form), user option (usercp options), admin option (forum index display)


Sonia
Reply With Quote
  #6  
Old 04-05-2005, 06:13 PM
Deaths Deaths is offline
 
Join Date: Oct 2004
Location: Europe, Belgium
Posts: 679
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by demure
Hey Deaths,

Thanks for the quick response. I'd need to use the variables in the header template.

Regards,
Matt
Sorry, I must've missed this thread.

Options 1 & 2 can be called with only 1 query, so you can make that 1 option. Same goes for 3&4.

why-not basicly asked all questions needed, heh.
Reply With Quote
  #7  
Old 04-05-2005, 08:07 PM
demure demure is offline
 
Join Date: Aug 2004
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by why-not
Ho do you want the $var(s) passed?
Do you want this for threads where the last post was made and for all forums, but only ones defined by some method?

I mean I understand what you are trying to do, but I don't understand exactly how you want to do it! Can you make screen of what you want the result to show or do you have a template row that will show me how each row should look, so I know how to make the function return the data each eval(template_row) needs! Depending how you want it will tell me if I can grab data that is already being processed or if I need to do another query or add another Join to get what you are needing for your display! In other words please give more details.

I know you want it in the header template, now show me how you want it! Give an example so I can see what the result would look like, and list exactly each $var you want to have access to!

These I know, list any others that you need!

Thread Title
Last Post User Name
Last Post Time
Thread Icon, if no last Post Icon.

Lastly, how will this be limited. By a user action (form), user option (usercp options), admin option (forum index display)


Sonia
I sent you a PM with a link to the current forum being developed. It has an example of what I'm going to be needing on there. Thanks for the quick reply!

Regards,
Matt
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 06:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04081 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete