Siggen

Dragonfly integration forum

Re: Siggen

Postby Rothin » Tue Sep 19, 2006 5:53 am

I tried messing around some more with it and appear to have gotten it to work.
Last edited by Rothin on Tue Sep 19, 2006 6:00 am, edited 1 time in total.
Rothin
WR.net Apprentice
WR.net Apprentice
 
Posts: 18
Joined: Wed Jul 05, 2006 2:39 pm

Re: Siggen

Postby Bedevere » Mon Sep 25, 2006 6:14 pm

Anaxent wrote:lol.... sorry for laughing, but yeah it is supposed to read avatar and not signiture my bad. Sometimes i get too far ahead of myself and just forget a few things.



Thats why we have support forums. No one is perfect.
Image
User avatar
Bedevere
WR.net Apprentice
WR.net Apprentice
 
Posts: 47
Joined: Thu Jul 06, 2006 6:25 pm

Siggen

Postby Corish » Wed Oct 18, 2006 10:46 pm

I am also getting the problem where I cannot Save my Avatars or Signatures. When I do a Profile or guild update it shows that it is updateing ok. Also I can see the Avatars and Signatures on the Character stats pages etc but they are not saving into the saved folder o nthe server I have changed the Permissions o nthe server to 755 for the files and tried the updated file for the trigger.php and that doesn;t seem to help. I am running Dragonfly and everything else seems to work fine...

Thanks in advance
Corish
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Tue Oct 03, 2006 3:08 pm

Siggen

Postby zanix » Thu Oct 19, 2006 8:06 am

Permissions need to be 777, not 755
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Siggen

Postby Corish » Thu Oct 19, 2006 12:11 pm

Ok I have made sure all the folders and files in Siggen that have the Write access .txt file are set to 777 permissions no different.

Any other ideas?
Corish
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Tue Oct 03, 2006 3:08 pm

Siggen

Postby zanix » Thu Oct 19, 2006 8:07 pm

Ok, I have found an error in this file

Use this updated file
Code: Select all
<?php
/*******************************
 * $Id: trigger.php 11 2006-07-16 06:09:06Z zanix $
 *******************************/

if ( !defined('ROSTER_INSTALLED') )
{
    exit(
'Detected invalid access to this file!');
}

/*
    Start the following scripts when "update.php" is called

    Available variables
        - $wowdb       = roster's db layer
        - $member_id   = character id from the database ( ex. 24 )
        - $member_name = character's name ( ex. 'Jonny Grey' )
        - $roster_conf = The entire roster config array
        - $mode        = when you want to run the trigger
            = 'char'  - during a character update
            = 'guild' - during a guild update

    You may need to do some fancy coding if you need more variables

    You can just print any needed output

*/
//----------[ INSERT UPDATE TRIGGER BELOW ]-----------------------


// The following is an example "trigger.php" file from zanix's SigGen

//------[ Get DB settings ]-----------------------

$sql_str "SHOW TABLES LIKE '".ROSTER_SIGCONFIGTABLE."';";
$result $wowdb->query($sql_str);
$r $wowdb->fetch_assoc($result);


if( !empty(
$r) )
{
    
// Read SigGen Config data from Database
    
$config_str "SELECT `config_id`,`trigger`,`guild_trigger` FROM `".ROSTER_SIGCONFIGTABLE."`;";
    
$config_sql $wowdb->query($config_str);
    if( 
$config_sql && $wowdb->num_rows($config_sql) != )
    {
        while( 
$siggen_row $wowdb->fetch_assoc($config_sql) )
        {
            
$SigGenConfig[$siggen_row['config_id']]['trigger'] = $siggen_row['trigger'];
            
$SigGenConfig[$siggen_row['config_id']]['guild_trigger'] = $siggen_row['guild_trigger'];
        }
    }
    
$wowdb->free_result($config_sql);
    unset(
$siggen_row);
}

global 
$module_name;

// Run this on a character update
if( $mode == 'char' )
{
    if( 
$SigGenConfig['signature']['trigger'] )
    {
        print 
'Saving Sig-[ <img src="index.php?name='.$module_name.'&amp;file=addon&amp;roster_addon_name=siggen&amp;mode=signature&amp;member='.urlencode(utf8_decode($member_name)).'&amp;etag=0" width="75" height="16" alt="" /> ]';
    }

    if( 
$SigGenConfig['avatar']['trigger'] )
    {
        print 
' Saving Avatar-[ <img src="index.php?name='.$module_name.'&amp;file=addon&amp;roster_addon_name=siggen&amp;mode=avatar&amp;member='.urlencode(utf8_decode($member_name)).'&amp;etag=0" width="19" height="16" alt="" /> ]';
    }
}


// Run this on a guild update
if( $mode == 'guild' )
{
    if( 
$SigGenConfig['signature']['guild_trigger'] )
    {
      print 
'Saving Sig-[ <img src="index.php?name='.$module_name.'&amp;file=addon&amp;roster_addon_name=siggen&amp;mode=signature&amp;member='.urlencode(utf8_decode($member_name)).'&amp;etag=0" width="75" height="16" alt="" /> ]';
    }

    if( 
$SigGenConfig['avatar']['guild_trigger'] )
    {
        print 
' Saving Avatar-[ <img src="index.php?name='.$module_name.'&amp;file=addon&amp;roster_addon_name=siggen&amp;mode=avatar&amp;member='.urlencode(utf8_decode($member_name)).'&amp;etag=0" width="19" height="16" alt="" /> ]';
    }
}
unset(
$SigGenConfig);
?>
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Siggen

Postby Corish » Fri Oct 20, 2006 2:08 am

Hmmm just tried replacing the trigger.php file with the one above and doesn;t seem to have changed anything. Where should the sigs and avatar files be saving too? I want to make sure that I have the correct save folder.
Corish
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Tue Oct 03, 2006 3:08 pm

Siggen

Postby zanix » Fri Oct 20, 2006 3:26 am

There should be a "saved" folder in the dragonfly root directory

Also make sure you have "auto save image on character update" turned on in SigGen Config
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Siggen

Postby Corish » Fri Oct 20, 2006 3:55 am

Ok I have a Saved folder and it is set to 777 permission. and I have "auto save image on character update" turned on in SigGen Config.
Corish
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Tue Oct 03, 2006 3:08 pm

Siggen

Postby zanix » Fri Oct 20, 2006 8:59 pm

Look at the error log on your web server and see if you have any errors
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Siggen

Postby Corish » Sat Oct 21, 2006 3:09 am

I'm using a Remote hosting company to host my Dragonfly site and am accessing it via phpmyadmin 2.7.0 and am not sure where to log for the log within there or what query to make the log avalibale for viewing.

On the SQL Queries when Irun the update to try to generate the Sigs etc I can see them in the update log and i nthe SQL queries I can find the following line:

SHOW TABLES LIKE 'cms_wowrosterdf_roster_addon_siggen';
SELECT `config_id`,`trigger`,`guild_trigger` FROM `cms_wowrosterdf_roster_addon_siggen`;

Not sure where to proceed from here but I am very grateful for your help so far.
Corish
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Tue Oct 03, 2006 3:08 pm

Siggen

Postby zanix » Sat Oct 21, 2006 8:00 am

When you upload your lua file, do you let the page fully load?
SigGen won't save the images unless you let all the images fully load

Corish - Your web host doesn't have a control panel?
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

Siggen

Postby Corish » Sat Oct 21, 2006 12:42 pm

I let all the images load fully till everything seems to have stopped loading on the page.

My Web hosting is a free one via my ISP so it doesn't :(
Corish
WR.net Apprentice
WR.net Apprentice
 
Posts: 6
Joined: Tue Oct 03, 2006 3:08 pm

Previous

Return to Dragonfly

Who is online

Users browsing this forum: No registered users and 1 guest

cron