Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PhotoPost PopUp vB Code Details »»
PhotoPost PopUp vB Code
Version: 1.01, by MPDev MPDev is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 3.0.6 Rating:
Released: 01-28-2004 Last Update: 02-13-2005 Installs: 14
Is in Beta Stage  
No support by the author.

This mod provides for a Select popup box which displays thumbnails of a users PhotoPost gallery. Clicking on a thumbnail inserts the vB Code for that image into the text area. NEXT and PREV links are provided to scroll through a users photos (16 displayed at a time).

Mod installed at http://www.photopostdev.com

+ + To Do

vBulletin files to edit: 1
PhotoPost files to add: 1
Queries to Run: 0
Templates to add: 1
Templates to modify: 1
Time to install: 15 Minutes

+ + Known Issues

Mod assumes PhotoPost and vB are installed into same database. If you have them in seperate databases, you will need to use a mysql_select_db() to switch to PP and then back to vB in the pppanel.php file.

http://www.photopostdev.com/showthre...=1232#post1232

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #42  
Old 04-20-2004, 01:40 PM
lasto lasto is offline
 
Join Date: Jan 2002
Posts: 1,514
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok well im using the standard one - no need to use the other one then as the standard one is fine enough for me.
Reply With Quote
  #43  
Old 04-21-2004, 06:56 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After a lot of playing about... I have gotten this to work with the all the editors.

This is what I have done... please feel free to comment... my javascript chugs.

Here is my photopostpopup template:
PHP Code:
$stylevar[htmldoctype]
<
html dir="$stylevar[textdirection]lang="$stylevar[languagecode]">
<
head>
<
title>$vboptions[bbtitle] - PhotoPost PopUp</title>
$headinclude
<script type="text/javascript">
<!--
<if 
condition="$show['closewindow']">
    
self.close();
<else />
    
self.focus();
</if>
//-->
</script>

<
script language="JavaScript" type="text/JavaScript">
function 
updatePost(UBBCode) {
try{
  
opener.htmlwindow.focus();
  
opener.htmlbox.selection.createRange().pasteHTML("<img src='" UBBCode "'>");
  
self.close;
}catch(
errorObject){
BodyVal opener.document.vbform.message.value;
opener.document.vbform.message.value '[img]https://vborg.vbsupport.ru/[/img]';
}

}
</
script>
</
head>
<
body style="margin:0px">

<
table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
<
tr>
    <
td class="tcat" colspan="4">PhotoPost PopUp</td>
</
tr>
$photopanel
</table>

</
body>
</
html
Find this in your pppanel.php:
PHP Code:
        $photo_name str_replace$theext""$photo ); 
And I replaced the following two lines with this (I think that is all I replaced... someone let me know if not)
PHP Code:
        if ( $medsize $imgurl "{$data_dir}/$ppcat/{$user}{$photo_name}-med{$theext}";
        else 
$imgurl "{$data_dir}/$ppcat/{$user}{$photo}"
Basically, they just took out the [img] tags.

I think thats it... Its working on mine anyway. Let me know if anyone has problems and I will see what else I may have changed.

nJoy
Reply With Quote
  #44  
Old 04-21-2004, 07:43 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works but You have no images to select from. is constantly being showed and when i click next page that doesnt goto the next page :s
Reply With Quote
  #45  
Old 04-21-2004, 09:01 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by corsacrazy
works but You have no images to select from. is constantly being showed and when i click next page that doesnt goto the next page :s
Was doing that before I made any changes. Wasnt it on yours? I just reverted the pppanel.php file and was getting the same thing.
Reply With Quote
  #46  
Old 04-21-2004, 09:14 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I thought... The problems were already in the pppanel file, but I have sorted them.

open pppanel.php and find this:

PHP Code:
$user $bbuserinfo['userid']; 
Afterward, add this:
PHP Code:
$page=$_REQUEST['page']; 
That will sort out your page problems

now for the no pictures thing...

same file, find this:
PHP Code:
if ( $numrows 16 $nextpage 0
aftwerward, I put this:
PHP Code:
$y=0
then find this:
PHP Code:
$i++; 
and afterward, add:
PHP Code:
$y=1
then find this:
PHP Code:
if ( $i == ) { 
and change it to:
PHP Code:
if ( $y == ) { 

nJoy
Reply With Quote
  #47  
Old 04-21-2004, 09:30 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

guess wot ? it only bloody worked ! Nice work mate thanks a milliion
Reply With Quote
  #48  
Old 04-21-2004, 09:46 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by corsacrazy
guess wot ? it only bloody worked ! Nice work mate thanks a milliion
no problem, glad to have been able to contribute.

Maybe the original file should be updated to reflect the chages as there is a lot to pick through?
Reply With Quote
  #49  
Old 04-21-2004, 09:47 PM
corsacrazy's Avatar
corsacrazy corsacrazy is offline
 
Join Date: May 2002
Location: london
Posts: 854
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

havnt seen the creator for ages i started workin on the file to try and get the thumbnail url insert into the avatar field but had no luck i called it ppanel2.php and just edited the variables BUT i just coulndnt find the correct one lol
Reply With Quote
  #50  
Old 05-01-2004, 01:36 PM
RMS-Chef RMS-Chef is offline
 
Join Date: Aug 2003
Location: MA, USA
Posts: 326
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gmarik
Nice, if PP would have more of these things, but it happens so rarely, that they listen to the client wishes, they don't really upgrade it and it's quite sad. Something should be done about that! For example full style template integration with vB3 - that would save PhotoPost project ...
The new Beta 4.8b does this quite well!
Reply With Quote
  #51  
Old 05-01-2004, 05:20 PM
The Geek's Avatar
The Geek The Geek is offline
 
Join Date: Sep 2003
Location: Behind you
Posts: 2,779
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RMS-Chef
The new Beta 4.8b does this quite well!
huh. Mike never said anything about it when I enquired about my changes. Maybe it was already done.

Cool though
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 01:12 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04454 seconds
  • Memory Usage 2,340KB
  • Queries Executed 25 (?)
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
  • (11)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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