vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=34)
-   -   PhotoPost PopUp vB Code (https://vborg.vbsupport.ru/showthread.php?t=60917)

lasto 04-20-2004 01:40 PM

ok well im using the standard one - no need to use the other one then as the standard one is fine enough for me.

The Geek 04-21-2004 06:56 PM

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

corsacrazy 04-21-2004 07:43 PM

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

The Geek 04-21-2004 09:01 PM

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.

The Geek 04-21-2004 09:14 PM

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

corsacrazy 04-21-2004 09:30 PM

guess wot ? it only bloody worked ! Nice work mate thanks a milliion

The Geek 04-21-2004 09:46 PM

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?

corsacrazy 04-21-2004 09:47 PM

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

RMS-Chef 05-01-2004 01:36 PM

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!

The Geek 05-01-2004 05:20 PM

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


All times are GMT. The time now is 09:30 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.01082 seconds
  • Memory Usage 1,773KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (11)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete