Status
Not open for further replies.

bluefirepro

Active Member
144
2013
17
0
Hello,

Can anybody please help me to understand on how to delete a user from Imgshot control panel. Screenshot will be very helpful.

Regards
Allen
 
26 comments
in img.php

move this code starting from line 251

PHP:
<div class="bottom_ads">
<?php
    if($configs->isPremium($rowImage['id_user'])) {
        echo stripslashes($configsarr['premium_ads_bottom']);
    } else {
    switch($rowImage['adult']) {
        case 0:
            echo stripslashes($configsarr['clean_bottom_ads']);
            break;
        case 1:
            echo stripslashes($configsarr['adult_bottom_ads']);
            break;
    }
    }

?>
</div>

to line 200 between

PHP:
    <script type="text/javascript">
        $(function() {
            $( "#accordion" ).accordion();
        });
    </script>


    <div style="width:600px; margin:auto; margin-top:50px; margin-bottom:20px;">

        <div id="accordion">

like

PHP:
    <script type="text/javascript">
        $(function() {
            $( "#accordion" ).accordion();
        });
    </script>

<div class="bottom_ads">
<?php
    if($configs->isPremium($rowImage['id_user'])) {
        echo stripslashes($configsarr['premium_ads_bottom']);
    } else {
    switch($rowImage['adult']) {
        case 0:
            echo stripslashes($configsarr['clean_bottom_ads']);
            break;
        case 1:
            echo stripslashes($configsarr['adult_bottom_ads']);
            break;
    }
    }

?>
</div>

    <div style="width:600px; margin:auto; margin-top:50px; margin-bottom:20px;">

        <div id="accordion">
            <h3><a href="#">Codes</a></h3>

if this makes sense to you
 
Havent tried the above code yet, but going to try it today for sure. Along with that I am stuck with one last thing.

The pre-image ad page, I am not able to get it work...

Thr is one ad network with makes the pre-image page by itself it doen't look good and the skip button does't show up.


Two ads that i want to integrate in my image host but nothing seem to work.






copied the code from other image hosts but its not working for me. If anyone can shed some light on it.

Regards
Alex
 
i'm not sure, but these last two look like Interstitial ads from ad networks.

you can switch between 2 by checking for cookies.
Interstitial ad -> next load check for cookie -> other Interstitial ad

or if you want your own then include a php that switches between two different html pages with a java script like http://www.dynamicdrive.com/dynamicindex3/splashpage.js the same that imageporter uses.
 
Hi Moggy,

I am not that great with scripts and need some time to learn it. For the mean time I have found a script which will solve my problem to some extent, but what I want from this script is to run after the page is loaded [and it runs after the page is fully loaded].

Can you help me out with this Alert Box script.

<html>
<head>

<script>
var delay = "2"; //############# How long before window appears (seconds)
var winw = "400"; //############# How wide should your window be (pixels)
var winh = "300"; //############# How tall should the window be (pixels)
var repeat = "1"; //Do you want visitor to be able to re-open window after closing?


//############# published at: scripts.tropicalpcsolutions.com


var ie=(document.all);
var ns=(document.layers);
var ns6=(document.getElementById && !ie);
var calculate=ns? "" : "px"
function loadElement(){
if(!ns && !ie && !ns6) return;
if(ie) popup=eval('document.all.elementDiv.style');
else if(ns) popup=eval('document.layers["elementDiv"]');
else if(ns6) popup=eval('document.getElementById("elementDiv").style');
if (ie||ns6) popup.visibility="visible";
else popup.visibility ="show";
displayElement()
}
function displayElement(){
var agent=navigator.userAgent.toLowerCase();
if (ie){
documentWidth = (centerElement().offsetWidth)/2+centerElement().scrollLeft-(winw/2);
documentHeight = (centerElement().offsetHeight)/2+centerElement().scrollTop-(winh/2);
}
else if (ns){
documentWidth=window.innerWidth/2+window.pageXOffset-(winw/2);
documentHeight=window.innerHeight/2+window.pageYOffset-(winh/2);
}
else if (ns6){
documentWidth=self.innerWidth/2+window.pageXOffset-(winw/2);
documentHeight=self.innerHeight/2+window.pageYOffset-(winh/2);
}
popup.left = documentWidth+calculate;
popup.top = documentHeight+calculate;
setTimeout("displayElement()",100);
}
function centerElement(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function closeElement(){
if (ie||ns6) { popup.display="none"; }
else { popup.visibility ="hide"; }
if (repeat == 1) { location.replace; }
}
</script>


</head>
<body onLoad="setTimeout('loadElement()',delay*1000)">


<script>
document.write('<table cellSpacing="0" cellPadding="0" border="1" bgcolor="white" width='+winw+' height='+winh+' id="elementDiv" style="visibility:hidden; position:absolute; top:0; left:0; border-color:black">');
</script>
<tr>
<td align="left" valign="top" bgcolor="blue" width="100%" height="10px">
<font color=white size=2 face=arial><b>
<!--################ Your page title goes here -->
Your Title Here...
</b></font>
</td>
<td width="10px" height="10px" bgcolor="red" align="right">
<font color="white" size="3" face="arial"><span onclick="closeElement()" style="cursor:hand" title="Click here to close this window"><b>X</b></span></font>
</td></tr>
<tr>
<td colspan="2">
<!--################ Your window content here goes -->


<font color=black size=2 face=arial><b><center>
Your Content Here...
</center></b></font>


<!--################ End of window content -->
</td></tr></table>
</div>


</body>
</html>
 
I am sexy and i know it and here is the code that you want Imgdino and all the others are using it :P

Note: Iframe one is the banner replace with yours and replace the popups that i have with yours that are under the iframe :P


PHP:
<div id="page_body" class="page_body"><script type="text/javascript">
if(top.location!=this.location) top.location=this.location;
</script>

	<script type="text/javascript">
      setTimeout("scale(document.getElementById('cursor_lupa'));", 5000);
</script>

<script type="text/javascript">
function mostrar(){
	document.getElementById('visual').style.display = '';
	document.getElementById('carga').style.display = 'none';
	document.getElementById('pub').style.display = '';
}

function ocultar(){
	setTimeout("ocultar2()", 1500);
}

function ocultar2(){
	document.getElementById('pub').style.display = 'none';
}

	setTimeout("mostrar();", 10000);
</script>


<script type="text/javascript">


function closeWin() {
  this.focus();
    self.opener = this;
    self.close();
}

function closeOverlay(){
    document.getElementById("redirect-ad").style.display = "none";
    setCookie("ibpuc", "1349460713-157d0e0f21230fce0b166f194be974c3", 1);
	_gaq.push(['b._trackEvent', 'pop', 'nsfw']);
}

function closeSfwOverlay(){
	document.getElementById("road-block").style.display = "none";
	setCookie("ibrb", "1349417513-0936325e3f2a6aa654b11ef7b0abb729", 1);
	_gaq.push(['b._trackEvent', 'pop', 'sfw']);
}

function setCookie(c_name,value,exdays)
{
    var exdate=new Date();
    exdate.setDate(exdate.getDate() + exdays);
    var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString() + "; path=/");
    ****************=c_name + "=" + c_value;
}


</script>

<div id="redirect-ad" style="position:absolute; top:0px; left:0px; z-index:500; width:100%; height:2000px; background-color:white; display:none;">






<div id="contenido" style="text-align:center; height:47px">
<div id="pub" style="display:none; width:369px; height:97px; position:absolute" onmouseover="ocultar();">

	</div>
	<div id="visual" style="display:none; text-align:center; width:369px; height:97pxg">
		<div id="redirect-close"><a href="#" style="cursor:pointer; color:blue; font-size:32px; font-weight:bold; text-decoration:none" onclick="closeOverlay(); return false;" rel="nofollow">Continue to your image</a></div>
	</div>
	<div id="carga" style="text-align:center; width:369px; height:97px">
		<div id="redirect-loading" style="position:absolute; z-index:1"><span style="color:blue; font-size:32px; font-weight:bold">Loading...</span></div>
	</div>
</div>

       <center><iframe width="1028" scrolling="no" height="900" frameborder="0" src="http://ads2.contentabc.com/ads?spot_id=266217" allowtransparency="true" marginheight="0" marginwidth="0" name="spot_id_266217"> </iframe></center> 


        
    </div>
    <script type="text/javascript">
        document.getElementById("redirect-ad").style.display = "block";
    </script>
 
Last edited:
Ha ha ha ... [I am sexy and I know] lol.
This is exactly what I was looking for and it works great but the continue to your image button is not working for me.

Everything works perfectly fine but when I press the continue to your image button then I don't see my image ... rather it stays on the same page.

Best Regards
Allen
 
Yes it will stay on the same page :P
If you have continue to image enabled in imgshot
if you dont then it will goto image,
imgdino doesnt have that page so thats why it goes directly to continue page
 
Last edited:
just this last question, as I am not at all good in coding. All I can do is copy code.
I'll really appreciate if you just let me know how to make that "continue to your image" link work so it forwards and goes to my main image.
 
changed it ... but still no effect on the continue button. I remain on the same page.

"
// OTHER IMAGES CONFIGURATIONS
define("DIRECT_LINK_SHOW", 0); // Direct link to image appear everywhere // 1 = yes, 0 = no
define("ADULT_RADIOBOX", 1); // 0 = Auto checked to NON-ADULT, 1 = Auto checked to ADULT, 2 = Require for user to choose what kind of image (mandatory)
define("CONTINUE_TO_IMAGE", 1); // 0 = DISABLED, 1 = ENABLED // Continue to image button
""
 
It was 0 earlier when I checked it .... then I changed it to 1 and now again changed it 0 but nothing seem to work.



After pressing the continue button all the popups open but the page stays thr and a hash appears after the link.

Edit: Do you want me to change any permissions to the config.php
 
Last edited:
Thanks msk19994, I have the same script, right now I'm not using it much, but your indicated modifications are going to be very useful for me in a future.
 
Status
Not open for further replies.
Back
Top