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 05-01-2009, 05:08 PM
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Location: almelo
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default rewrite 3.0.3 code to 3.8.2

Hello i have a php file on an old forum 3.0.3 and i wan't to upgrade the forum to 3.8.2 but on the testing server the php file won't run.

i searched a bit, but in 3.8.2 there is no
PHP Code:
/globalize($_REQUEST, array('perpage' => INT'pagenumber' => INT'showthumbs' => INT'userid' => INT)); 
how can i solve this first problem.

below the whole code is there.

edit by Lynne: code removed
Reply With Quote
  #2  
Old 05-03-2009, 09:37 AM
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Location: almelo
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nobady who could help me with this
Reply With Quote
  #3  
Old 05-03-2009, 01:25 PM
ForumsMods ForumsMods is offline
 
Join Date: Aug 2007
Location: Argentina
Posts: 667
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I saw in you thread that you are doing it. Now, I am busy doing some jobs, when I finish I will help you. Or if you are hurry, you can post in Requests For Paid Services

Change $DB_site to $db
Reply With Quote
  #4  
Old 05-03-2009, 04:20 PM
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Location: almelo
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i hade do some rewriting already done ,the $db_site i translated in stuf i translated $vbulletin->db.

$post do i need to translate that ?
Reply With Quote
  #5  
Old 05-03-2009, 04:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this code you wrote yourself? If not, you can't post it here without permission from the author.
Reply With Quote
  #6  
Old 05-03-2009, 04:53 PM
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Location: almelo
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i wish i had write this peace of code.
the code is i think from here https://vborg.vbsupport.ru/showthread.php?t=68419

i found this gallery file on the server i currently administrate.

the author i can't reach his website is out of order.

what could i do next to contact him ?

when it is still "illigal" then this thread should be closed and removed
Reply With Quote
  #7  
Old 05-03-2009, 04:58 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I removed the code from the first post.

It is fine if you want to hire someone to change the code for use on your own site, but since the author didn't give permission for the code to be 'reused' or for you to post it anywhere, then you can't just post the code here. The coder hasn't been here for over eight months, so I'm guessing he isn't going to be checking for PMs here.
Reply With Quote
  #8  
Old 05-04-2009, 03:43 PM
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Location: almelo
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what is wrong with this peace of code
Code:
	$sorturl = "gallery.php?&userid=$userid&pp=$perpage&showthumbs=$showthumbs";
	$pagenav = construct_page_nav($totalattachments, $sorturl);
$totalattachments is a integer number.
i'm thinking of what arguments are missing.

i get two errors.
Warning: Missing argument 3 for construct_page_nav() in [path]/includes/functions.php on line 2410

Warning: Missing argument 4 for construct_page_nav() in [path]/includes/functions.php on line 2410
Reply With Quote
  #9  
Old 05-04-2009, 04:01 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Take a look at the API for construct_page_nav. You need 4 arguments. http://members.vbulletin.com/api/
Reply With Quote
  #10  
Old 05-04-2009, 04:09 PM
ageurtse ageurtse is offline
 
Join Date: Apr 2009
Location: almelo
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks lynne, i bookmarked it.

is the code from 3.7.x the same as 3.8.x ?

--------------- Added [DATE]1241462539[/DATE] at [TIME]1241462539[/TIME] ---------------

what do $show en $post mean, i can't find a manual about these 2 things
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 11:54 AM.


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.06114 seconds
  • Memory Usage 2,248KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete